package com.qiyeji.real_estate.mapper;

import com.qiyeji.real_estate.entity.project;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

@Mapper
@Repository
public interface projectMapper {
    int deleteByPrimaryKey(String pcode);

    int insert(project record);

    int insertSelective(project record);

    project selectByPrimaryKey(String pcode);

    int updateByPrimaryKeySelective(project record);

    int updateByPrimaryKey(project record);

    List<project> getAllProject();

    List<project> getProjectByCID(String cid);

    List<project> getProjectBySCode(String sCode);

    List<project> getProjectByDate(String build_time);

    List<project> getProjectByName(String pName);

    int updateForComplete(String pcode);

    CopyOnWriteArrayList<project> getAllProjectForExcel();

    List<project> getProjectBysCode(String sCode);
}